package io.geekidea.boot.salesslip.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import io.geekidea.boot.outbound.dto.OutboundExcel;
import io.geekidea.boot.outbound.query.OutboundQuery;
import io.geekidea.boot.salesslip.dto.SalesChartDto;
import io.geekidea.boot.salesslip.dto.SalesslipExcel;
import io.geekidea.boot.salesslip.entity.Salesslip;
import io.geekidea.boot.salesslip.query.SalesslipQuery;
import io.geekidea.boot.warehousentry.dto.StatisticsDto;
import io.geekidea.boot.warehousentry.query.WarehousentryQuery;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SalesslipService extends IService<Salesslip> {

    Page<Salesslip> getSalesslipPageList(Page<Salesslip> page, @Param("param") SalesslipQuery salesslipQuery);

    int delById(Integer id);

    List<SalesslipExcel> getDownloadList(SalesslipQuery salesslipQuery);

    int getSingularCount(WarehousentryQuery warehousentryQuery);
    List<StatisticsDto> getWeekCount(WarehousentryQuery warehousentryQuery);

    List<SalesChartDto> getMoneyCount(WarehousentryQuery warehousentryQuery);
}